<script lang="ts" setup>
import {
  HomeFilled,
  MoreFilled
} from '@element-plus/icons-vue'
import { inject } from "vue";

// 用户侧边导航栏（未登录）

const login = inject("login");
</script>

<template>

  <el-menu
      active-text-color="#ffbbff"
      background-color="#2a3441"
      class="el-menu"
      default-active="1"
      text-color="#fff"
      router="router"
  >
    <el-menu-item index="/user/index">
      <el-icon><home-Filled/></el-icon>
      <span>首页</span>
    </el-menu-item>

    <el-menu-item @click="login">
      <el-icon><more-filled/></el-icon>
      <span>个人中心</span>
    </el-menu-item>
  </el-menu>

</template>

<style scoped>
.el-menu {
  height: 100vh;
}
</style>



